M[Symbol.dispose]
Bun

method

fs.Dir.[Symbol.dispose]

Calls dir.closeSync() if the directory handle is open, and returns undefined.